{% extends 'base_site.html' %}
{% load i18n %}

{% block coltype %}colMS{% endblock %}
{% block bodyclass %}dashboard{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans "Home" %}</a> &rsaquo; <a href="{% url character-index %}">Characters</a> &rsaquo; {{ character.name }}</div>{% endblock %}
{% block content %}
<div id="content-main">
<h1>{{ show_header }} {{character.name}}</h1>
{% if user.is_staff %}
<h2><a href="/admin/auth/user/{{ character.player.id }}/">{{ character.player.first_name }} {{ character.player.last_name }}</a></h2>
{% endif %}

<div class="module">
<table summary="Influences available to this character.">
<caption>Influences</caption>
{% if influences %}
{% for influence in influences %}
<tr>
    <th scope="row"><a href="">{{ influence.type }}</a></th>
    <td>{{ influence.level }}</td>
    <td width="100%">&nbsp;</td>
</tr>
{% endfor %}
{% else %}
<tr><td colspan="2" width="100%">No influences found.</td><td width="100%">&nbsp;</td></tr>
{% endif %}
</table>

<table summary="Backgrounds available to this character.">
<caption>Backgrounds</caption>
{% if backgrounds %}
{% for background in backgrounds %}
<tr>
    <th scope="row"><a href="">{{ background.type }}</a></th>
    <td>{{ background.level }}</td>
    <td width="100%">&nbsp;</td>
</tr>
{% endfor %}
{% else %}
<tr><td colspan="2" width="100%">No backgrounds found.</td><td width="100%">&nbsp;</td></tr>
{% endif %}
</table>
</div>
</div>
{% endblock %}